package util;

import be.belgium.eid.eidlib.BeID;
import be.belgium.eid.exceptions.EIDException;

public class CardReader {

	BeID eID = new BeID(true);
	
	public CardReader(){
	}
	
	/** Returns the Municipality of an eID
	 * @throws EIDException */
	public String getMunicipality() throws EIDException{
		System.out.print("City : ");
		System.out.println(eID.getIDAddress().getMunicipality());
		return this.eID.getIDAddress().getMunicipality();
	}
	
	/** Returns the Zipcode of an eID
	 * @throws EIDException */
	public String getZipcode() throws EIDException{
		System.out.print("ZipCode : ");
		System.out.println(eID.getIDAddress().getZipCode());
		return this.eID.getIDAddress().getZipCode();
	}
	
	/** Returns the Adress of an eID
	 * @throws EIDException */
	public String getAddress() throws EIDException{
		System.out.print("Address : ");
		System.out.println(eID.getIDAddress().getStreet());
		return this.eID.getIDAddress().getStreet();
	}

	/** Returns the 1stFirstName of an eID
	 * @throws EIDException */
	public String get1stFirstName() throws EIDException{
		System.out.print("FirstName : ");
		System.out.println(eID.getIDData().get1stFirstname());
		return this.eID.getIDData().get1stFirstname();
	}
	
	/** Returns the Name of an eID
	 * @throws EIDException */
	public String getName() throws EIDException{
		System.out.print("Name : ");
		System.out.println(eID.getIDData().getName());
		return this.eID.getIDData().getName();
	}
	
}